FROM python:3.6.5

MAINTAINER wanglei

ARG pip_url=https://pypi.douban.com/simple

ARG pip_host=pypi.douban.com

ARG work_dir=/home/mdd/k8s_test

ENV PYTHONUNBUFFERED 1

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p ${work_dir}

WORKDIR ${work_dir}

COPY . ${work_dir}

RUN  pip install --upgrade pip -i ${pip_url} --trusted-host ${pip_host}

RUN pip install -r requirements.txt -i ${pip_url} --trusted-host ${pip_host}

EXPOSE 9999

CMD ["/bin/bash", "start.sh"]
